package com.hdu.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;


@Data
@ConfigurationProperties("delay-task-client-config")
public class DelayTaskClientProperties {
    private String delayTaskCenterIp;
    private String delayTaskCenterPort;

    public String getDelayTaskCenterUrl() {
        return "http://" + delayTaskCenterIp + ":" + delayTaskCenterPort;
    }
}
